home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / ascii.xml < prev    next >
Text File  |  2002-08-30  |  976b  |  34 lines

  1. <search function="ascii">
  2.   <name>Base Conversion: ASCII Character</name>
  3.   <description>
  4.     Convert ASCII characters to decimal, hex, octal and binary equivalents.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.           <tr><td>ascii B</td></tr>
  8.       </table>
  9.   </description>
  10.   <category>Functions</category>
  11.   <contributor>Monty Scroggins</contributor>
  12.   
  13.   <script><![CDATA[
  14.     function ascii(c)
  15.     {
  16.       if( nullArgs("ascii",c) )
  17.         return false;
  18.       var char = c.substring(0,1);
  19.       var dec  = char.charCodeAt(0);
  20.       document.deff.q.value = "char: "+char +
  21.         "  dec: "+dec+
  22.         "  oct: "+dec.toString(8)+
  23.         "  hex: "+dec.toString(16)+
  24.         "  bin: "+dec.toString(2);
  25.     }
  26.   ]]></script>
  27.  
  28.   <copyright>
  29.     Copyright (c) 2002 David Bau
  30.     Distributed under the terms of the
  31.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  32.   </copyright>
  33. </search>
  34.